import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class ActivePage extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ unique: true })
  name: string;

  @Column()
  mainImg: string;

  @Column()
  sort: number;

  @Column()
  path: string;

  @Column()
  isShow: boolean;
  @Column()
  create_time: Date;
  @Column()
  update_time: Date;
  @Column({ nullable: true })
  delete_time: Date;
}
